#include <iostream>
#include "triMulty.h"
using namespace std;

int main(int argc, char *argv[])
{
    triMulty tm;
    int *trix;
    int tNum;
    int ZERO;
    std::cout << "num: ";
    std::cin >> tNum;
    trix = new int[tNum+1];

    std::cout << "input each:" << std::endl;

    for(int t = 0; t < tNum; t ++)
    {
        std::cin >> trix[t];
        if(t == tNum - 1)
        {
            std::cin >> trix[t+1];
        }
        else
            std::cin >> ZERO;
    }

    std::cout << "min: " << tm.getMinMultiTimes(trix, tNum) << std::endl;
    std::cout << "way: ";
    tm.printWay();

    //t2.printWay();

    return 0;
}


